package com.suda.sudaexamsystem.mapper;

import com.suda.sudaexamsystem.pojo.ExamPaper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ExamPaperMapper {
    // 添加试卷
    void addExamPaper(ExamPaper examPaper);

    // 更新试卷
    void updateExamPaper(ExamPaper examPaper);

    // 删除试卷
    void deleteById(int examId);

    // 删除班级试卷
    void deleteByClazzId(int clazzId);

    // 查询试卷
    ExamPaper findById(int examId);

    // 查询班级所有试卷
    List<ExamPaper> findByClazzId(int clazzId);
}
